package org.test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    //首页
    @RequestMapping("/index")
    public  String index(){
        return "index";
    }

    //注册页
    @RequestMapping("/Register")
    public String Register(){
        return "user/Register";
    }

    //用户首页
    @RequestMapping("/user-index")
    public String UserIndex(){
        return "user/user-index";
    }

    //管理后台首页
    @RequestMapping("/admin-index")
    public String AdminIndex(){
        return "admin/admin-index";
    }

    /*
    @RequestMapping("/checkOrder")
    public String checkOrder(){
        return "redirect:/Order/orderAll";
    }
*/



}
